home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / VINDEX.DIR / 00035_Script_startmovie < prev    next >
Text File  |  1995-09-06  |  2KB  |  87 lines

  1. --òò StartMovie Handlers
  2. --** July 15 95 2 P.M.
  3. --** Needs to have functions added to reference link cast members
  4. Global gBtn17, gBtn16, gWhatMovie,gNewMarker, gTheHelpIsOn , gIndexManager,gReInitGlobals
  5.  
  6. on StartMovie
  7.   set gBtn16 = birth(script "a3StateButton", 46, 1931, "SV141819.AIF", "CrossEIndex", "HandCursor")
  8.   set gBtn17 = birth(script "a3StateButton", 47, 1925, "SV141819.AIF", "CrossAIndex", "HandCursor")
  9.   put "VikingW.dir" into gWhatMovie
  10.   if gReInitGlobals = 1 then
  11.     GlobalSetUpFromTheatre
  12.     set gReInitGlobals = 0
  13.   end if
  14.   VGlobalsSetUpIndex
  15.   set gTheHelpIsOn = 0
  16.   initializeIndex
  17.   set the cursor of sprite 3 = [1904 , 1905]
  18.   set spriteCount = 3
  19.   repeat while (spriteCount < 29)
  20.     set the cursor of sprite spriteCount = [1904 , 1905]
  21.     set spriteCount = spriteCount + 1
  22.   end repeat
  23.   set the cursor of sprite 40 = [1904 , 1905]
  24.   
  25. end
  26.  
  27. on StopMovie
  28.   hidecontrol (gBtn16)
  29.   hidecontrol (gBtn17)
  30.   set gBtn16 = 0  
  31.   set gBtn17 = 0
  32.   unload 1, 3
  33.   disposeIndexSystem
  34. end
  35.  
  36. --òòInitialize Index System Code
  37. on initializeIndex
  38.   --òò use sprite 2 to hold sub menu
  39.   puppetSprite 2,TRUE
  40.   --òò use sprite 40 to hold sub memu icon art
  41.   puppetSprite 40,TRUE
  42.   set gIndexManager = birth ( script "aIndexManager")
  43.   initIndex(gIndexManager)
  44. end
  45.  
  46. --òòDispose of objects
  47. on disposeIndexSystem
  48.   puppetSprite 2, FALSE
  49.   puppetSprite 40,FALSE
  50.   set gIndexManager = 0
  51. end
  52.  
  53. --òòUser input interface handlers : Track mouse movement and clicks
  54. on rolloverIndex
  55.   testIndexRollover(gIndexManager)
  56. end
  57.  
  58. on clickAlpha
  59.   clickAlpha(gIndexManager)
  60. end
  61.  
  62. on clickTopic 
  63.   clickTopic(gIndexManager)
  64. end
  65.  
  66. on clickRefLink
  67.   set horzPos = the mouseH
  68.   set vertPos = the mouseV
  69.   clickRefLink(gIndexManager ,horzPos,vertPos)
  70. end
  71.  
  72. on resetIndex
  73.   resetIndex (gIndexManager)
  74. end
  75.  
  76. on doBeep
  77.   --beep 3
  78.   --put "gotFunctionString"
  79. end
  80.  
  81. on setTEXT startC,stopC
  82.   repeat while (startC <= stopC)
  83.     set the scriptText of cast startC = "--0,0,0,0,doBeep;"
  84.     set startC = startC + 1
  85.   end repeat
  86. end
  87.